package com.medata.repository;

import com.medata.dataObject.Templatefields;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author ：zb
 * @date ：Created in 2019/5/9 0009 15:36
 * @description：
 */

public interface TemplatefieldsRepository extends JpaRepository<Templatefields,Integer> {
    List<Templatefields> getByDbid(Integer dbid);
    List<Templatefields> findByRefId(Integer refId);
    List<Templatefields> getByDbidOrderBySequence(Integer dbid);
    Templatefields getByDbidAndTpFieldDesc(Integer dbid,String desc);
}
